<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <style>
    .box {
      height: 5000px;
    }
  </style>
  <body>
    <div id="app">
      <button @click="bb"></button>
      <div class="box" ref="aaa"></div>
      <div class="box2" ref="ccc"></div>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script>
      new Vue({
        el: '#app',
        methods: {
          bb() {
            console.log(this)
          }
        }
      })
    </script>
  </body>
</html>
